package com.bootlever.framework.webservice.bean;

import com.bootlever.framework.common.utils.StringUtils;

public class Server {

    private String name;//beanName
    private String desc;//描述，可为空
    private String service;//webService实现类
    private String publishUrl;//发布的路径

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getPublishUrl() {
        return publishUrl;
    }

    public void setPublishUrl(String publishUrl) {
        this.publishUrl = publishUrl;
    }

    public boolean validate(){
        if (StringUtils.isBlank(this.name)||StringUtils.isBlank(this.service)||StringUtils.isBlank(this.publishUrl)) {
            return false;
        }
        return true;
    }

}
